Scripts automate repetitive tasks and provide additional features that are not available in PageStream. They allow you to customize PageStream to meet your needs.

PageStream offers two types of scripts. Internal scripts can contain only commands so they can only set options. These scripts execute very quickly. You can use them even if you don't know how to use a scripting language because they can be created by recording your actions. External scripts rely on the scripting language of your computer. MacOS computers use AppleScript, while AmigaOS computers use ARexx. External scripts can be more powerful, because they can get information from PageStream as well as set options, but they are also slower to execute.

Instructions on how to write scripts are beyond the scope of this help guide. Complete documentation on all PageStream and BME commands and queries is provided in the PageStream and BME Scripting help files. Instructions for using internal scripts are provided below.

To record an internal script: Display the Script palette and click its Record button, or choose Record from its pop-up menu. Perform the actions you want to record and then click the Stop button or choose Stop from the Script palette's pop-up menu. You can then edit the script, display it in the Scripts menu, or assign it to an available function key with the Edit Script dialog box.

To play an internal script: Select the script from the Scripts menu or press its associated function key. Alternatively, you can select it from the Script palette and click the Play button.

To edit an internal script: Select the script from the Script palette and choose Edit from the pop-up menu. Alternatively, hold down Shift while selecting the script from the Scripts menu or Script palette.

To save your scripts: Choose Save from the Script palette's pop-up menu to save your script setup as the default. You can save your scripts to other files, and even export them as the basis for AppleScript or ARexx scripts.

MacOS Users: By default, MacOS 9 will take control of a number of the function keys, including the F10 which is the default key for the Redraw Window script. You can change the function key assigned to that script, or turn off the Mac OS hot keys. To make full use of all of the function keys inside PageStream, Go to the "Keyboard" control panel. Click on the "Function Keys" button at the bottom of the dialog box. Make sure that the "Hot Function Keys" selection at the top of the new requestor is not checked (the default is checked) and close both requestors. The function keys should now be freed from OS control. PageStream (and all your other programs) can now take control.

Go to Common Questions

Go to previous chapter: Printing: World Wide Web Publishing
Go to Appendices: Extensions

Exit: Table of Contents